
package com.xerland.tbootstrap;

import retrofit2.Retrofit;

/**
 * Bootstrap API service
 */
public class BootstrapService {

    private Retrofit restAdapter;

    /**
     * Create bootstrap service
     * Default CTOR
     */
    public BootstrapService() {
    }

    /**
     * Create bootstrap service
     *
     * @param restAdapter The Retrofit that allows HTTP Communication.
     */
    public BootstrapService(Retrofit restAdapter) {
        this.restAdapter = restAdapter;
    }

//    private UserService getUserService() {
//        return getRestAdapter().create(UserService.class);
//    }
//
//    private NewsService getNewsService() {
//        return getRestAdapter().create(NewsService.class);
//    }
//
//    private CheckInService getCheckInService() {
//        return getRestAdapter().create(CheckInService.class);
//    }

    private Retrofit getRestAdapter() {
        return restAdapter;
    }

    /**
     * Get all bootstrap News that exists on Parse.com
     */
//    public List<News> getNews() {
//        return getNewsService().getNews().getResults();
//    }
//
//    /**
//     * Get all bootstrap Users that exist on Parse.com
//     */
//    public List<User> getUsers() {
//        return getUserService().getUsers().getResults();
//    }
//
//    /**
//     * Get all bootstrap Checkins that exists on Parse.com
//     */
//    public List<CheckIn> getCheckIns() {
//       return getCheckInService().getCheckIns().getResults();
//    }
//
//    public User authenticate(String email, String password) {
//        return getUserService().authenticate(email, password);
//    }
}